import request from '@/utils/request'

// 库存-查询
export function listReagentStock(query) {
  return request({
    url: '/sjt/stock/list',
    method: 'get',
    params: query
  })
}

// 新增入库
export function newReagentStock(data) {
  return request({
    url: '/sjt/stock',
    method: 'post',
    data
  })
}

// 出库
export function newReagentStockOut(data) {
  return request({
    url: '/sjt/stock/out',
    method: 'post',
    data
  })
}

// 删除库存
export function delReagentStock(stockId) {
  return request({
    url: '/sjt/stock/' + stockId,
    method: 'delete'
  })
}